Skip to content

test: align Zig tree-sitter ground truth with class extraction rules - #2173

Merged
squid-protocol merged 2 commits into
mainfrom
fix/zig-tree-sitter-ground-truth
Aug 23, 2026
Merged

test: align Zig tree-sitter ground truth with class extraction rules#2173
squid-protocol merged 2 commits into
mainfrom
fix/zig-tree-sitter-ground-truth

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Resolves #2167. Resolves #2168.

  1. Ignore anonymous inline enums/structs used as local variable TYPE annotations (e.g. const name: enum { ... } = value), removing 10 extra phantom classes.
  2. Add Zig ERROR nodes to the blind spots list so Bun's #heap syntax crashes don't wrongly penalize correctly extracted classes like Borrowed.

Fixes #2167, fixes #2168 by refining tests/tools/tree_sitter_accuracy_audit.py:
1. Ignore anonymous inline enums/structs used as local variable TYPE annotations (e.g. `const name: enum { ... } = value`), removing 10 extra phantom classes.
2. Add Zig `ERROR` nodes to the blind spots list so Bun's `#heap` syntax crashes don't wrongly penalize correctly extracted classes like `Borrowed`.
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 661bd21 into main Aug 23, 2026
30 checks passed
@squid-protocol
squid-protocol deleted the fix/zig-tree-sitter-ground-truth branch August 23, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant